=pod
 * ServerInventory.pm
 * 
 * Copyright (C) 2012 Elena Shishkina
 * 
 * This file is part of ServerInventory.
 * 
 * ServerInventory is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * ServerInventory is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with ServerInventory.  If not, see <http://www.gnu.org/licenses/>.
=cut

use utf8;
use 5.12.0;

package ServerInventory;
use Mojo::Base 'Mojolicious';

our $conf = {};

# This method will run once at server start
sub startup {
    my $self = shift;
  
    $conf = $self->plugin('Config');
  
    # Router
    my $r = $self->routes;
  
    # Normal route to controller
    $r->route('/')->to('call#static');
    $r->route('/call.aspx')->to('call#call');
    $r->route('/import.aspx')->to('call#import');
    $r->route('/install.html')->to('call#install');
}

1;
